<template>
    <div class="root">
        <Topbar>365装走百变模仿为您免...</Topbar>
        <img src="static/pic/14623230045729473cd24f3.jpg" class="pic">
        <div class="main">
            <div class="top">
                <h3 class="a">365装修百变魔方为你免费申报价，真金白银为你省，对敲竹杠说NO！</h3>
                <div class="topinner">
                    <span class="txt2 a">截止时间：20017年12月31日</span>
                    <span class="txt1 a">146人参加</span>
                </div>
            </div>
            <div  class="txt1 active">
                活动内容
            </div>
            <div class="a">
                <span class="txt1 a">【福利来啦】365装博士为您免费审报价，真金白银为你省，对敲竹杠说NO！</span>
                <br>
                <span class="txt1 a">【报名QQ】3176609118</span>
                <br>
                <span class="txt1 a">你只需要上传一份详细的装修方案以及清晰的装修预算</span>
            </div>
        </div>

        <!--弹出报名框-->
        <transition name="pagein">
            <div class="shoaw" v-show="show" @click="shoawclick"></div>    
        </transition>
        <transition name="page">
            <div class="baoming" v-show="show">
                <h3>装修报名</h3>
                <hr class="aaa">
                <div class="baoming-inner">
                    <p>
                        <span>真实姓名：</span>
                        <input type="text">
                    </p>
                    <p>
                        <span>手机号码：</span>
                        <input type="text">
                    </p>
                </div>
                <div>
                    <button class="btn1">取消报名</button>
                    <button class="btn2">确认报名</button>
                </div>	
            </div>
        </transition>
        
        <button class="btn" @click="btnclick">立即报名</button>
    </div>
</template>

<script>
import Topbar from '../components/Topbar.vue'
    export default{
        data:function(){
            return {
                show:false
            }
        },
        components:{
            Topbar
        },
        methods:{
            btnclick:function(){
                this.show = true
            },
            shoawclick:function(){
                this.show =false;
            }
        }
    }
</script>

<style scoped>
.root{
    position: relative;
}
.pic{
    width:100%;
}
.txt1{
    font-size: 12px;
}
.txt2{
    font-size: 12px;
    color: #FF3300;
}
.main{
    /*padding: 10px;*/
}
.active{
    background-color: #eeeeee;
    padding: 4px 10px;
}
.a{
    padding: 4px 10px;
}
.topinner{
    display: flex;
    justify-content: space-between;
}
.btn{
    height: 30px;
    width: 80%;
    margin:20px 30px ;
    border:none;
    background-color: #FF6900;
    border-radius: 6px;
    color: white;
}
.btn2{
    height: 20px;
    width: 40%;
    border:none;
    background-color: #FF6900;
    border-radius: 6px;
    color: white;
    margin-left: 10px;
}
.btn1{
    height: 20px;
    width: 40%;
    border:1px  solid #FF6900;
    border-radius: 6px;
    color: #FF6900;
     background-color: white;
     margin-left: 15px;
}
.baoming{
    width: 90%;
    /*height: 400px;*/
    position: absolute;
    /*border: 1px solid black;*/
    background-color: white;
    padding: 10px 20px;
    border-radius: 8px;
    top:140px;
    left:16px; 
    z-index: 10
}
.baoming-inner{
    text-align: center;
}
.aaa{
    border: 1px solid #eeeeee;
}
.shoaw{
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top:0;
    height: 100vh;
    width: 100%;
}
</style>